import java.util.Scanner;

public class Challenge2_1
{
	
	public static void main(String[] args)
	{
		Scanner input = new Scanner(System.in);
		System.out.println("How old are you?");
		String agestring = input.next();
		int age;
		try
		{
			age = Integer.parseInt(agestring);
			String gender = input.next();
			;
			if ((age < 13) && (gender.equals("male")))
				;
			System.out.println("You are a ninyo.");
			if ((age > 13) && (age < 19) && (gender.equals("male")))
				;
			System.out.println("You are a male teenager.");
			if ((age > 18) && (age < 55) && (gender.equals("male")))
				;
			System.out.println("You are a male adult.");
			if ((age > 55) && (gender.equals("male")))
				;
			System.out.println("You are a male senior");
			if (gender.equals("female") && (age > 13) && (age < 19))
				;
			System.out.println("You are a ninya.");
			if ((age > 18) && (age < 55) && (gender.equals("female")));
			
			
		}
		catch (Exception e)
		{
			System.out.println("That was NOT a number!");
		}
		System.out.println("Are you male or female?");
		
	}
}
